package com.ljf.tijian;

import com.ljf.tijian.AI.WebSocketAI;
import org.apache.commons.codec.digest.DigestUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan(basePackages = "com.ljf.tijian.mapper")
public class SpringBootTijianApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SpringBootTijianApplication.class,args);
        WebSocketAI.setApplicationContext(applicationContext);
    }
//    public static void main(String[] args) {
//        String salt = "nvfkahh321dsa";
//        String originl_pwd = "123456"+salt;
//        String final_pwd = DigestUtils.md5Hex(originl_pwd.getBytes());
//        System.out.println(final_pwd);
//    }
}
